package com.example.qxfw.ybzz.service.impl;

import com.example.qxfw.common.entity.zy.SummaryProduct;
import com.example.qxfw.rcyw.service.SummaryProductService;
import com.example.qxfw.ybzz.mapper.SummaryProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SummaryProductServiceImpl implements SummaryProductService {

    @Autowired
    private SummaryProductMapper summaryProductMapper;

    @Override
    public List<Integer> getId(String strFileName, String strType, String strType2, String strYear) {
        return summaryProductMapper.selectYearId(strFileName, strType, strType2, strYear);
    }

    @Override
    public List<Integer> getId(String strFileName, String strType, String strYear) {
        return summaryProductMapper.selectId(strFileName, strType, strYear);
    }

    @Override
    public Integer update(SummaryProduct summaryProduct) {
        return summaryProductMapper.updateById(summaryProduct);
    }
}
